attr
Mutex attributes object whose mutex type attribute is to be
modified.
type
New value for the mutex type attribute. The type argument
specifies the type of mutex that will be created. Valid values
are:
PTHREAD_MUTEX_NORMAL
PTHREAD_MUTEX_DEFAULT (default)
PTHREAD_MUTEX_RECURSIVE
PTHREAD_MUTEX_ERRORCHECK